projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15be680
)
stylecontext: On failure, exit the loop, don't try again
author
Benjamin Otte
<otte@redhat.com>
Tue, 20 Mar 2012 02:44:26 +0000
(
03:44
+0100)
committer
Benjamin Otte
<otte@redhat.com>
Tue, 17 Apr 2012 06:59:09 +0000
(08:59 +0200)
Because we will fail again. And then we try again. And then we fail
again. Ad infinitum.
gtk/gtkstylecontext.c
patch
|
blob
|
history
diff --git
a/gtk/gtkstylecontext.c
b/gtk/gtkstylecontext.c
index 809605ea1ae1e3ac6c5df3cb03bd54e85305eaeb..1ca099d7e99f6f1b3ca0bf77c95da7edeb529935 100644
(file)
--- a/
gtk/gtkstylecontext.c
+++ b/
gtk/gtkstylecontext.c
@@
-2469,7
+2469,7
@@
gtk_style_context_get_style_valist (GtkStyleContext *context,
G_STRLOC,
g_type_name (widget_type),
prop_name);
-
continue
;
+
break
;
}
peek_value = _gtk_style_context_peek_style_property (context, widget_type,
@@
-2484,6
+2484,7
@@
gtk_style_context_get_style_valist (GtkStyleContext *context,
G_VALUE_TYPE_NAME (peek_value),
error);
g_free (error);
+ break;
}
prop_name = va_arg (args, const gchar *);